package com.ctl.dto;

import com.ctl.entity.Comment;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class CommentDTO {
    private CommentUserDTO reviewer;
    private Integer id;         //评论id
    private String content;     //评论内容
    private String created_at;  //评论创建时间
    @JsonProperty("parent_id")
    private Integer parentId;
    private List<CommentDTO> sub_comments; //子评论列表

}
